<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="div"></div>
    <script src="jquery-1.12.4.min.js"></script>
    <script>
        var person = {
                name: 'zhangshan',
                age: 12,
                sex: 'man',
            }
            //模板字符串
        var str = `<ul>`;
        str += `<li>${person.name}</li><li>${person.age}</li><li>${person.sex}</li>`
        str += `</ul>`;
        console.log(str);
        $('#div').append(str);
    </script>
</body>

</html>